package com.hspedu.set_;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/9
 * @time 15:36
 */
public class Map_ {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("no1",1);
        Set set = map.entrySet();
        for (Object o : set) {
            Map.Entry entry = (Map.Entry) o;
            System.out.println(o.getClass());
            entry.getKey();
            entry.getValue();
        }
    }
}


